/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tida.servir.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Jurguen Zambrano
 */
@Entity
@Table(name = "RNSDD_CAUSA_TIPO_SANCION")
@NamedQueries({
    @NamedQuery(name = "CausaTipoSancion.findAll", query = "SELECT c FROM CausaTipoSancion c")})
public class CausaTipoSancion implements Serializable {
    private static final long serialVersionUID = 1L;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Id
    @Basic(optional = false)
    @Column(name = "ID_CAUSA_SANCION")
    private Long idCausaSancion;
    @Column(name = "ID_TIPO_SANCION")
    private Long idTipoSancion;

    public CausaTipoSancion() {
    }

    public CausaTipoSancion(Long idCausaSancion) {
        this.idCausaSancion = idCausaSancion;
    }

    public Long getIdCausaSancion() {
        return idCausaSancion;
    }

    public void setIdCausaSancion(Long idCausaSancion) {
        this.idCausaSancion = idCausaSancion;
    }

    public Long getIdTipoSancion() {
        return idTipoSancion;
    }

    public void setIdTipoSancion(Long idTipoSancion) {
        this.idTipoSancion = idTipoSancion;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idCausaSancion != null ? idCausaSancion.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CausaTipoSancion)) {
            return false;
        }
        CausaTipoSancion other = (CausaTipoSancion) object;
        if ((this.idCausaSancion == null && other.idCausaSancion != null) || (this.idCausaSancion != null && !this.idCausaSancion.equals(other.idCausaSancion))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.tida.servir.entities.CausaTipoSancion[ idCausaSancion=" + idCausaSancion + " ]";
    }
    
}
